home *** CD-ROM | disk | FTP | other *** search
- on placeqt
- global selectedvideonum, qtstatus
- set qtstatus to "QTon"
- set videoname to "QT" & selectedvideonum
- puppetSprite(15, 1)
- set the type of sprite 15 to 16
- set the ink of sprite 15 to 0
- set the foreColor of sprite 15 to 255
- set the backColor of sprite 15 to 0
- set the castNum of sprite 15 to the number of member videoname
- set the locH of sprite 15 to 517
- set the locV of sprite 15 to 248
- updateStage()
- puppetSprite(12, 1)
- set the type of sprite 12 to 1
- set the ink of sprite 12 to 0
- set the foreColor of sprite 21 to 255
- set the backColor of sprite 21 to 0
- set the castNum of sprite 12 to the number of member "onAir"
- if value(item 2 of selectedvideonum) <= 6 then
- set the locH of sprite 12 to 61
- set the locV of sprite 12 to 237 + (39 * (value(item 2 of selectedvideonum) - 1))
- else
- if value(item 2 of selectedvideonum) >= 7 then
- set the locH of sprite 12 to 208
- set the locV of sprite 12 to 237 + (39 * (value(item 2 of selectedvideonum) - 7))
- end if
- end if
- updateStage()
- end
-
- on closeqt
- global selectedvideonum, qtstatus
- set qtstatus to "QToff"
- if selectedvideonum = 0 then
- exit
- end if
- puppetSprite(15, 1)
- updateStage()
- set the type of sprite 15 to 1
- set the ink of sprite 15 to 0
- set the foreColor of sprite 15 to 255
- set the backColor of sprite 15 to 0
- set the castNum of sprite 15 to the number of member "QTmask"
- set the locH of sprite 15 to 517
- set the locV of sprite 15 to 248
- updateStage()
- puppetSprite(12, 0)
- updateStage()
- end
-
- on stopqt
- global selectedvideonum, videotime, qtstatus
- if (selectedvideonum = 0) or (qtstatus = "QToff") then
- exit
- end if
- puppetSprite(15, 1)
- updateStage()
- set the movieRate of sprite 15 to 0
- set videotime to the movieTime of sprite 15
- updateStage()
- set the type of sprite 15 to 0
- updateStage()
- end
-
- on playqt
- global selectedvideonum, videotime, qtstatus
- if (selectedvideonum = 0) or (qtstatus = "QToff") then
- exit
- end if
- set n to item 1 of selectedvideonum
- go(n)
- recoveryqt()
- end
-
- on recoveryqt
- global selectedvideonum, videotime
- puppetSprite(15, 1)
- set the type of sprite 15 to 16
- updateStage()
- set the foreColor of sprite 15 to 255
- set the backColor of sprite 15 to 0
- set the movieTime of sprite 15 to videotime
- updateStage()
- end
-